package cc.lpz.backend.mapper;

import cc.lpz.backend.entity.Address;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AddressMapper extends BaseMapper<Address> {
    @Select("select * from address where user_id=#{userId}")
    Address selectByUserId(@Param("userId") Long userId);
}
